import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/login',      
      component: () => import('../views/LoginView.vue')
    }, 
    {
      path: '/memberAdd',      
      component: () => import('../views/menber/memberAdd.vue')
    },
    {
      path: '/memberList',      
      component: () => import('../views/menber/MemberList.vue')
    },
    {
      path: '/levelList',      
      component: () => import('../views/menber/LevelList.vue')
    },
    {
      path: '/levelAdd',      
      component: () => import('../views/menber/LevelAdd.vue')
    },
    {
      path: '/memberList',      
      component: () => import('../views/menber/MemberList.vue')
    },      
    {
      path: '/memberUpdate',      
      component: () => import('../views/menber/MemberUpdate.vue')
    },      
    {
      path: '/qyiList',      
      component: () => import('../views/menber/QyiList.vue')
    },      
    {
      path: '/qyiAdd',      
      component: () => import('../views/menber/QyiAdd.vue')
    },      
    {
      path: '/shopList',      
      component: () => import('../views/Shop/ShopList.vue')
    },      
    {
      path: '/shopAdd',      
      component: () => import('../views/Shop/ShopAdd.vue')
    },      
    {
      path: '/upShop',      
      component: () => import('../views/Shop/UpShop.vue')
    }
  ]
})

export default router
